﻿
@model List<CinemaManagement.EF.Movie>
@{
    ViewBag.Title = "Remove";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Remove</h2>

@*@if (ViewBag.movies.Count == 0)
{
    <p>No movies found.</p>
}*@
@*else
{*@
    <table>
        <thead>
            <tr>
                <th>电影名称</th>
                <th>导演名称</th>
                <th>上映日期</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var movie in ViewBag.movies)
            {
                <tr>
                    <td>@movie.movieName</td>
                    <td>@movie.movieType</td>
                    @*<td>@movie.ReleaseDate.ToShortDateString()</td>*@
                    <td>
                        <form method="post" action="/Movie/Remove">
                            <input type="hidden" name="id" value="@movie.movieName" />
                            <button type="submit">下架</button>
                        </form>
                    </td>
                </tr>
            }
        </tbody>
    </table>
@*}*@